﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminUserList.ascx.cs" Inherits="Job.Web.userControls.Admin.AdminUserList" %>


<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<asp:GridView ID="gridUsers" runat="server" BackColor="White" 
    BorderColor="#7070ff" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
    GridLines="Horizontal" AutoGenerateColumns="False" 
    onrowediting="gridUsers_RowEditing" onrowdeleting="gridUsers_RowDeleting" 
    onrowdatabound="gridUsers_RowDataBound" Width="100%" CssClass="table_font">
    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
    <Columns>
        <asp:BoundField DataField="login_name" HeaderText="登录名">
            <HeaderStyle CssClass="table_font_td" />
            <ItemStyle Width="25%" HorizontalAlign="Left" CssClass="table_font_td"/>
        </asp:BoundField>
        <asp:BoundField DataField="name" HeaderText="姓名">
            <HeaderStyle CssClass="table_font_td" />
            <ItemStyle Width="30%" HorizontalAlign="Left" CssClass="table_font_td"/>
        </asp:BoundField> 
        <asp:BoundField DataField="email" HeaderText="Email">
            <HeaderStyle CssClass="table_font_td" />
            <ItemStyle Width="35%" HorizontalAlign="Left" CssClass="table_font_td"/>
        </asp:BoundField>    

        <asp:TemplateField>            
            <ItemTemplate>
                <asp:Label ID="lbUserId" runat="server" Text='<%# Bind("user_id") %>' Visible=false></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
       
        <asp:CommandField ShowEditButton="True" EditText="编辑">
        </asp:CommandField>
        <asp:CommandField ShowDeleteButton="true" DeleteText="删除">
        </asp:CommandField>            
    </Columns>
    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
    <AlternatingRowStyle BackColor="#F7F7F7" />


</asp:GridView>


<webdiyer:AspNetPager ID="pagerButtom" runat="server" 
	ButtonImageNameExtension="n" ButtonImageExtension=".gif" 
        DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
		PagingButtonSpacing="10px" ButtonImageAlign="left" 
		onpagechanged="pagerButtom_PageChanged" CssClass="pagination" 
		CurrentPageButtonClass="current" PagingButtonClass="" 
		PagingButtonLayoutType="Span">
</webdiyer:AspNetPager>
<br />
<asp:Button ID="btNew" runat="server" onclick="btNew_Click" Text= " 新增管理员 " CssClass="btn_2k3"/>

<br />										  
